from django.shortcuts import render, redirect, HttpResponse
from django.http import JsonResponse

from app01.utils.form.project_form import ProjectModelForm
from app01 import models

def dashboard(request, project_id):
    """ 项目主页 """
    
    return render(request, "dashboard.html", {"project_id": project_id})

def issues(request, project_id):
    """ 项目问题 """
    
    return render(request, "issues.html", {"project_id": project_id})

def statistics(request, project_id):
    """ 项目统计 """
    
    return render(request, "statistics.html", {"project_id": project_id})


def wiki_add(request, project_id):
    """ 项目文档 - 添加 """
    
    return render(request, "wiki_add.html", {"project_id": project_id})

def setting(request, project_id):
    """ 项目设置 """
    
    return render(request, "setting.html", {"project_id": project_id})